package com.chenshu.repository;

import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2023-12-12
 * Time：20:14
 */
@Repository
public class User {
    private String name;
    private int id;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", id=" + id +
                '}';
    }

    public void doRepository() {
        System.out.println("doRepository");
        User user = new User();
        user.id = 1;
        user.name = "chenshu";
        System.out.println(user.toString());
    }
}
